﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class CustomerPosConfiguration : EntityTypeConfiguration<CustomerPos>
    {
        public CustomerPosConfiguration()
        {
            Property(g => g.CustomerPosID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.Amount).IsOptional();
            Property(g => g.AmountPicked).IsOptional();
            Property(g => g.ExternalID).IsRequired();
            Property(g => g.Index).IsOptional();
            Property(g => g.Number).IsOptional();
            Property(g => g.PartitionAllowed).IsOptional();
            Property(g => g.SerialNumber).IsOptional();
            Property(g => g.State).IsOptional();
            Property(g => g.ItemDataID).IsOptional();
            Property(g => g.OrderID).IsRequired();
            Property(g => g.LotID).IsRequired();
            Property(g => g.ClientID).IsOptional();
        }
    }
}
